# 定义一个函数来执行任务
run_task() {
    local aggregation=$1
    local beta=$2
    local dataset=$3
    local model=$4
    local epochs=$5
    local device=$6
    local alpha=$7
    local num_users=$8
    local frac=$9

    echo "Running task: $aggregation, $beta, $dataset, $model"
    python main.py --aggregation=$aggregation \
    --beta=$beta \
    --dataset=$dataset \
    --model=$model \
    --epochs=$epochs \
    --device=$device \
    --alpha=$alpha \
    --num_users=$num_users \
    --frac=$frac
}

# 执行任务列表
run_task "fedgpma" 0.3 "cifar10" "cnn_adapter" 50 'cuda:0' 0.00 10 1.0
run_task "fedgpma" 0.3 "cifar10" "cnn_adapter" 50 'cuda:0' 0.00 20 0.5
run_task "fedgpma" 0.3 "cifar10" "cnn_adapter" 50 'cuda:0' 0.00 50 0.2

#run_task "fedgpma" 0.5 "cifar100" "cnn_adapter" 50 'cuda:0' 0.01
#run_task "fedgpma" 0.3 "cifar100" "cnn_adapter" 50 'cuda:0' 0.01
#run_task "fedgpma" 0.1 "cifar100" "cnn_adapter" 50 'cuda:0' 0.01

